<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta name="robots" content="index, follow" />
		<meta name="description"
			content="DADF Examples - Database Viewer" />
		<meta name="keywords" content="DADF Examples, DADF, Database, viewer" />
		<title>
			DADF SERVER 1.2	uses REST services exclusively
		</title>
		<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
		<script src="/_js/examples.js"></script>
	</head>
	<body>
		<h1>DADF SERVER Database Viewer</h1>
		
		<p>To view DADF requests to a peer server use the <a href="/">DADF remote server REST POST examples here</a></p>
		<p>To POST or PUT more DADF requests to this localhost server instance use the <a href="/resttest">DADF REST Services Examples</a></p>
		<div>
			<h3>VIEW DADF REQUEST IN THE DATABASE AS XML</h3>
			<form id="data-dadf-request" action="/database/dadfrequest/" method="GET" target="_blank">
				<div>
					<input type="radio" onclick="swapRequestType('request-incoming');" checked="checked" name="type" value="Incoming" /> Incoming
					<input type="radio" name="type" onclick="swapRequestType('request-outgoing');" value="Outgoing" /> Outgoing
					<br /><br />
				</div>
				<div>
					<label for="getid" />Request Time</label>
					<select name="getid" id="request-incoming">
						<option value="-1">Choose A Time</option>
						<?php foreach($this->incoming_bid_requests as $incoming_bid_request): ?>
							<option value="<?php echo $incoming_bid_request->IncomingBidRequestID ?>">
								<?php echo $incoming_bid_request->UpdateTime ?>
							</option>
						<?php endforeach; ?>
					</select>
					<select name="getid-off" id="request-outgoing" style="display: none;">
						<option value="-1">Choose A Time</option>
						<?php foreach($this->outgoing_bid_requests as $outgoing_bid_request): ?>
							<option value="<?php echo $outgoing_bid_request->OutgoingBidRequestID ?>">
								<?php echo $outgoing_bid_request->UpdateTime ?>
							</option>
						<?php endforeach; ?>
					</select>
				</div>
				<div>
					<br />
					<input type="submit" value="VIEW DADF-REQUEST" />
				</div>
			</form>
		</div>
		
		<div style="margin-top: 50px;">
			<h3>VIEW DADF OFFER IN THE DATABASE AS XML</h3>
			<form id="data-dadf-offer" action="/database/dadfoffer/" method="GET" target="_blank">
				<div>
					<input type="radio" onclick="swapOfferType('offer-incoming');" checked="checked" name="type" value="Incoming" /> Incoming
					<input type="radio" name="type" onclick="swapOfferType('offer-outgoing');" value="Outgoing" /> Outgoing
					<br /><br />
				</div>
				<div>
					<label for="getid" />Request Time</label>
					<select name="getid" id="offer-incoming">
						<option value="-1">Choose A Time</option>
						<?php foreach($this->incoming_offer_responses as $incoming_offer_response): ?>
							<option value="<?php echo $incoming_offer_response->IncomingOfferResponseID ?>">
								<?php echo $incoming_offer_response->UpdateTime ?>
							</option>
						<?php endforeach; ?>
					</select>
					<select name="getid-off" id="offer-outgoing" style="display: none;">
						<option value="-1">Choose A Time</option>
						<?php foreach($this->outgoing_offer_responses as $outgoing_offer_response): ?>
							<option value="<?php echo $outgoing_offer_response->OutgoingOfferResponseID ?>">
								<?php echo $outgoing_offer_response->UpdateTime ?>
							</option>
						<?php endforeach; ?>
					</select>
				</div>
				<div>
					<br />
					<input type="submit" value="VIEW DADF-OFFER" />
				</div>
			</form>
		</div>
		
		<div style="margin-top: 50px;">
			<h3>VIEW DADF ACCEPT IN THE DATABASE AS XML</h3>
			<form id="data-dadf-accept" action="/database/dadfaccept/" method="GET" target="_blank">
				<div>
					<input type="radio" onclick="swapAcceptType('accept-incoming');" checked="checked" name="type" value="Incoming" /> Incoming
					<input type="radio" name="type" onclick="swapAcceptType('accept-outgoing');" value="Outgoing" /> Outgoing
					<br /><br />
				</div>
				<div>
					<label for="getid" />Request Time</label>
					<select name="getid" id="accept-incoming">
						<option value="-1">Choose A Time</option>
						<?php foreach($this->incoming_accept_responses as $incoming_accept_response): ?>
							<option value="<?php echo $incoming_accept_response->IncomingAcceptResponseID ?>">
								<?php echo $incoming_accept_response->UpdateTime ?>
							</option>
						<?php endforeach; ?>
					</select>
					<select name="getid-off" id="accept-outgoing" style="display: none;">
						<option value="-1">Choose A Time</option>
						<?php foreach($this->outgoing_accept_responses as $outgoing_accept_response): ?>
							<option value="<?php echo $outgoing_accept_response->OutgoingAcceptResponseID ?>">
								<?php echo $outgoing_accept_response->UpdateTime ?>
							</option>
						<?php endforeach; ?>
					</select>
				</div>
				<div>
					<br />
					<input type="submit" value="VIEW DADF-ACCEPT" />
				</div>
			</form>
		</div>
		
		<div style="margin-top: 50px;">
			<h3>VIEW DADF ACCEPTED IN THE DATABASE AS XML</h3>
			<form id="data-dadf-accepted" action="/database/dadfaccepted/" method="GET" target="_blank">
				<div>
					<input type="radio" onclick="swapAcceptedType('accepted-incoming');" checked="checked" name="type" value="Incoming" /> Incoming
					<input type="radio" name="type" onclick="swapAcceptedType('accepted-outgoing');" value="Outgoing" /> Outgoing
					<br /><br />
				</div>
				<div>
					<label for="getid" />Request Time</label>
					<select name="getid" id="accepted-incoming">
						<option value="-1">Choose A Time</option>
						<?php foreach($this->incoming_accepted_responses as $incoming_accepted_response): ?>
							<option value="<?php echo $incoming_accepted_response->IncomingAcceptedResponseID ?>">
								<?php echo $incoming_accepted_response->UpdateTime ?>
							</option>
						<?php endforeach; ?>
					</select>
					<select name="getid-off" id="accepted-outgoing" style="display: none;">
						<option value="-1">Choose A Time</option>
						<?php foreach($this->outgoing_accepted_responses as $outgoing_accepted_response): ?>
							<option value="<?php echo $outgoing_accepted_response->OutgoingAcceptedResponseID ?>">
								<?php echo $outgoing_accepted_response->UpdateTime ?>
							</option>
						<?php endforeach; ?>
					</select>
				</div>
				<div>
					<br />
					<input type="submit" value="VIEW DADF-ACCEPTED" />
				</div>
			</form>
		</div>
		
	</body>
</html>




